package com.gupaoedu.dubbo;

import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * Hello world!
 *
 */
public class App 
{
    public static void main( String[] args )
    {


        ClassPathXmlApplicationContext ctx=
                new ClassPathXmlApplicationContext(new String[]{"application.xml"});
        ctx.start();

        IPayService iPayService = (IPayService)ctx.getBean("payService");
        String rs = iPayService.pay("test");
        System.out.println(rs);


    }
}
